package com.molichuxing.services.infrastructure.service.impl;

import com.molichuxing.services.infrastructure.convertor.Convert;
import com.molichuxing.services.infrastructure.dao.DesenseMapper;
import com.molichuxing.services.infrastructure.dao.GroupDesenseMapper;
import com.molichuxing.services.infrastructure.dto.response.response.DesenseDto;
import com.molichuxing.services.infrastructure.dto.response.response.GroupDesenseDto;
import com.molichuxing.services.infrastructure.service.DesenseService;
import com.molichuxing.services.infrastructure.service.GroupDesenseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("desenseService")
public class DesenseServiceImpl implements DesenseService {

    @Resource
    private DesenseMapper desenseMapper;

    @Override
    public List<DesenseDto> getDesenseListByParam(Map<String, Object> param) {
        return Convert.toDesenseDtoList(desenseMapper.getDesenseListByParam(param));
    }
}
